﻿<%@ Page Language="C#" MasterPageFile="~/pages/EditData/MasterPage.master" AutoEventWireup="true" CodeFile="MaterialType.aspx.cs" Inherits="pages_Default" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" style="width: 360px">
        <tr>
            <td align="left" style="width: 80px" valign="middle">
            </td>
            <td align="left" style="width: 280px;" valign="middle">
                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td>
        </tr>
        <tr>
            <td align="left" style="width: 80px" valign="middle">
            </td>
            <td align="left" valign="middle" style="width: 280px;">
                请选择物资种类：<asp:DropDownList ID="ddlBigType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlBigType_SelectedIndexChanged">
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td align="left" style="width: 80px" valign="middle">
            </td>
            <td align="left" valign="middle" style="width: 280px;">
                <asp:GridView ID="gvType" runat="server" AutoGenerateColumns="False" Width="228px" AllowPaging="True" OnPageIndexChanging="gvType_PageIndexChanging" PageSize="5" BorderColor="Black" BorderWidth="1px" CellSpacing="1">
                    <Columns>
                        <asp:BoundField DataField="ID" HeaderText="编码" />
                        <asp:BoundField DataField="Title" HeaderText="名称" />
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkButtonSelect" runat="server" CausesValidation="False" OnCommand="lnkButtonSelect_Command">选择</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerSettings FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PreviousPageText="上一页" />
                </asp:GridView>
                </td>
        </tr>
        <tr>
            <td align="left" style="width: 80px" valign="middle">
            </td>
            <td align="left" valign="middle" style="width: 280px">
                名称：<asp:TextBox ID="txtYype" runat="server"></asp:TextBox>&nbsp;
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtYype"
                    ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:Button ID="btnInsert" runat="server" OnClick="btnInsert_Click" Text="添加" />
                <asp:Button ID="btnDelete" runat="server" OnClick="btnDelete_Click" Text="删除" /></td>
        </tr>
    </table>
</asp:Content>

